package example_07.demo_02;

public class qianrushi {
    private String name;
    private int year;
    private String content;
    private String type;
    public qianrushi(){
        this.type = "嵌入式";
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    public void jiangke(){
        System.out.println("大家好，我是"+name+",工作"+year+"年，从事"+type+"方向");
        System.out.println("开始讲嵌入式");
    }
}
